#include "head.h"
//数据通过管道发送到QT
int sendToQt(char *tag,char *date)
{
	int ret;
	char sendDate[1024] = {0};
	memset(sendDate,0,sizeof(sendDate));
	strcat(sendDate,tag);
	strcat(sendDate,date);
	sendDate[strlen(sendDate)] = '#';
	printf("DEV>> send to QT msg :  %s\n",sendDate);
	ret = write(fifo_wr, sendDate, strlen (sendDate));	/* 写管道 */	
	if(ret < 0)
	{
		printf("DEV>> send msg to QT  error:%s!\n",sendDate);
		return -1;
	}
	return 0;


}
